package org.nepu.scr.indexrate.ratelongevity.longevityparams;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.BaseEntity;
import org.nepu.scr.indexrate.converter.longevityrate.*;
import org.nepu.scr.indexrate.converter.riskrate.equipmentrisk.*;
import org.nepu.scr.indexrate.vo.longevityrate.*;
import org.nepu.scr.indexrate.vo.riskrate.equipmentrisk.*;

import javax.persistence.Convert;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("延寿评级评价参数")
public class LongevityParamsData extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "评价任务ID")
    String longevityId;

    //延寿评级
    @ApiModelProperty(value = "井架、底座、绞车资料-井架参数")
    @Convert(converter = CommonIConverter.class)
    CommonI c11;

    @ApiModelProperty(value = "井架、底座、绞车资料-底座参数")
    @Convert(converter = CommonIConverter.class)
    CommonI c12;

    @ApiModelProperty(value = "井架、底座、绞车资料-绞车参数")
    @Convert(converter = CommonIConverter.class)
    CommonI c13;

    @ApiModelProperty(value = "井架、底座、绞车现场检查-井架参数")
    @Convert(converter = WellFrameB221Converter.class)
    WellFrameB221 c21;

    @ApiModelProperty(value = "井架、底座、绞车现场检查-底座参数")
    @Convert(converter = BaseC22Converter.class)
    BaseC22 c22;

    @ApiModelProperty(value = "井架、底座、绞车现场检查-钻井绞车参数")
    @Convert(converter = DrillingB22fConverter.class)
    DrillingB22f c23;

    @ApiModelProperty(value = "运行情况检查参数")
    @Convert(converter = RunningC31Converter.class)
    RunningC31 c31;

    @ApiModelProperty(value = "设备故障诊断参数")
    @Convert(converter = DefaultC32Converter.class)
    DefaultC32 c32;

    @ApiModelProperty(value = "应力测试参数")
    @Convert(converter = TestC41Converter.class)
    TestC41 c41;

    @ApiModelProperty(value = "强度校核参数")
    @Convert(converter = StrengthC51Converter.class)
    StrengthC51 c51;

    @ApiModelProperty(value = "检验结果分析参数")
    @Convert(converter = ResultC52Converter.class)
    ResultC52 c52;

}
